<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>旋转图</title>
       <style>
        html {
            perspective: 1000px;
        }

        .box {
            width: 500px;
            height: 500px;
            margin: 250px auto;
            transform-style: preserve-3d;
            /*transform: rotateX(45deg) rotateZ(45deg);*/
            animation: rotate 20s infinite linear;
            backface-visibility: visible;
        }

        .box > div {
            width: 500px;
            height: 500px;
            /*   为元素设置透明效果*/
            opacity: 0.7;
            position: absolute;
        }

        img {
            vertical-align: top;
        }

        .box1 {
            transform: rotateY(90deg) translateZ(250px);
        }

        .box2 {
            transform: rotateY(-90deg) translateZ(250px);
        }

        .box3 {
            transform: rotateX(90deg) translateZ(250px);
        }

        .box4 {
            transform: rotateX(-90deg) translateZ(250px);
        }

        .box5 {
            transform: rotateY(180deg) translateZ(250px);
        }

        .box6 {
            transform: rotateY(0deg) translateZ(250px);
        }

        @keyframes rotate{
            form {
                transform: rotateX(0) rotateZ(0);
            }

            to {
                transform: rotateX(1turn) rotateZ(1turn);
            }

        }
    </style>
</head>

<body>
    <div class="box">
        <div class="box1">
            <img src="./image/旋转/小七0.png">
        </div>
        <div class="box2">
            <img src="./image/旋转/小七1.png">
        </div>
        <div class="box3">
            <img src="./image/旋转/小七2.png">
        </div>
        <div class="box4">
            <img src="./image/旋转/小七3.png">
        </div>
        <div class="box5">
            <img src="./image/旋转/小七4.png">
        </div>
        <div class="box6">
            <img src="./image/旋转/小七5.png">
        </div>

    </div>
</body>

</html>